<div class="painel80">

  <%= titulo_form "Auditoria" %>

  <%= opcoes_avancadas(render :partial => "consulta") %>

  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <th>Id. do Objeto</th>
      <th>Modelo</th>
      <th>Usu&aacute;rio</th>
      <th>Tipo do Usu&aacute;rio</th>
      <th>Nome do Usu&aacute;rio</th>
      <th>Action</th>
      <th>Mudanca</th>
      <th>Vers&atilde;o</th>
      <th>Data da Cria&ccedil;&atilde;o</th>
      <th>Op&ccedil;&otilde;es</th>
    </tr>

    <% @audits.each do |audit| %>
      <tr>
        <td><%=h audit.auditable_id %></td>
        <td><%=h audit.auditable_type %></td>
        <td><%=h audit.user_id %></td>
        <td><%=h audit.user_type %></td>
        <td><%=h audit.username %></td>
        <td><%=h audit.action %></td>
        <td><%=h audit.changes %></td>
        <td><%=h audit.version %></td>
        <td><%=h audit.created_at %></td>
        <td><%= link_to image_tag('editar.gif'), audit %></td>

      </tr>
    <% end %>
  </table>
  <div class="paineldecontrole">
    <%= will_paginate @audits %>
  </div>
</div>
